package com.ch.web.entity.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * 
 * @author chenHao
 * @email 1429542285@qq.com
 * @date 2022-10-15 13:58:33
 */
@Data
@TableName("xy_back_comment")
public class XyBackCommentEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键id
	 */
	@TableId(type = IdType.AUTO)
	private Long id;
	/**
	 * 回复内容
	 */
	@NotBlank(message = "回复内容不能为空")
	private String backInfo;
	/**
	 * 回复人
	 */
	private Long backId;
	/**
	 * 回复给谁
	 */
	private Long targetUserId;
	/**
	 * 评论的id
	 */
	private Long commentId;
	/**
	 * 评论时间
	 */
	private Date createTime;

}
